package com.code.constant;

/**
 * 错误码常量
 *
 * @author ww
 * @date 2018/9/6
 */
public enum  ErrorEnum {
    /** 系统错误类型提示 */
    SUCCESS("success", 200),
    ERROR("service_error", 500),
    NOT_FOUNT("not_fount", 404);

    /** 错误消息 */
    private String msg;
    /** 错误码 */
    private Integer code;

    ErrorEnum(String msg, Integer code) {
        this.msg = msg;
        this.code = code;
    }
    public String getMsg() {
        return msg;
    }
    public Integer getCode() {
        return code;
    }
}
